#ifndef INCLUDED_BULLET_H //if not defined
#define INCLUDED_BULLET_H

#include <SGE.h>//if you use quotes, the compiler will look at the local file whereas with angle brackets looks at the include paths e.g .../files. Angled doesnt only look at local, looks everywhere. If its not in my project use angle, if its in my project use quotes
using namespace SGE;

#include "Character.h"
#include "Map.h"

class Bullet
{
public:
	Bullet();
	~Bullet();

	void Load();
	void LoadBullet();
	void Unload();
	void Update(float deltaTime,Map& mmap);
	void Render(const SVector2 viewOffset);
	

	
	SVector2 GetPosition();

	SVector2 GetVelocity();

	float GetLife();

	void Fire(const SVector2& pos, const SVector2& vel);
	void Kill();
	bool IsActive() const;
	SCircle GetBoundingCircle() const	{return SCircle(mPosition,10.0f);}
private:
	SGE_Sprite mSprite;
	SVector2 mPosition;
	SVector2 mVelocity;
	bool mActive;
	float mLife;	
	
	/*const int kMaxBullets;
	int bulletIndex;*/
	Character fighter;


};


#endif